<?php

/**
 * @author xuanky
 * @copyright 2012
 */
session_start();
 include "../util/dataUtil.php";
 $idpb = $_GET['idpb'];
 //echo $iddean;
 $sql_load = "select MaPhong, TenPhong, MaTRGP, date_format(NgayNhanChuc,'%d/%m/%Y' )as NgayNhanChuc,GhiChu from phongban where MaPhong = $idpb";
 //echo $sql_load;
 $load = executeQuery($sql_load);
 while($kq = mysql_fetch_array($load)){
 $_SESSION['tenfrm']="Cập nhật thông tin Phòng ban";
 $_SESSION['readonly']="readonly='true'";
 $_SESSION['maphong']=$kq['MaPhong'];
 $_SESSION['tenphong']=$kq['TenPhong'];
 $_SESSION['MaTRGP']=$kq['MaTRGP'];
 $_SESSION['NgayNhanChuc']=$kq['NgayNhanChuc'];
 $_SESSION['ghichupb']=$kq['GhiChu'];
 $_SESSION['action']= "../controller/xuly_capnhat_phongban.php";
 
 }
 
 header ("location: ../admin/taomoi_phongban.php");


?>